object frmStocktakingMng: TfrmStocktakingMng
  Left = 0
  Top = 0
  Caption = 'Stocktaking'
  ClientHeight = 477
  ClientWidth = 711
  Color = clBtnFace
  Font.Charset = DEFAULT_CHARSET
  Font.Color = clWindowText
  Font.Height = -11
  Font.Name = 'Tahoma'
  Font.Style = []
  OldCreateOrder = False
  OnCreate = FormCreate
  PixelsPerInch = 96
  TextHeight = 13
  object rzpnltop: TRzPanel
    Left = 0
    Top = 0
    Width = 711
    Height = 41
    Align = alTop
    TabOrder = 0
    DesignSize = (
      709
      39)
    object btnStocktaking: TButton
      Left = 8
      Top = 6
      Width = 129
      Height = 27
      Caption = #26032#30424#28857
      TabOrder = 0
      OnClick = btnStocktakingClick
    end
    object btnLast: TButton
      Left = 560
      Top = 6
      Width = 137
      Height = 27
      Anchors = [akTop, akRight]
      Caption = #32487#32493#30424#28857
      TabOrder = 1
      OnClick = btnLastClick
    end
    object btnRefresh: TButton
      Left = 143
      Top = 6
      Width = 129
      Height = 27
      Caption = #21047#26032
      TabOrder = 2
      OnClick = btnRefreshClick
    end
  end
  object rzsplall: TRzSplitter
    Left = 0
    Top = 41
    Width = 711
    Height = 436
    Orientation = orVertical
    Position = 169
    Percent = 39
    SplitterWidth = 6
    Align = alClient
    TabOrder = 1
    BarSize = (
      0
      169
      711
      175)
    UpperLeftControls = (
      grdhd)
    LowerRightControls = (
      grddt)
    object grdhd: TDBGridEh
      Left = 0
      Top = 0
      Width = 711
      Height = 169
      Align = alClient
      DataGrouping.GroupLevels = <>
      DataSource = dshd
      Flat = False
      FooterColor = clWindow
      FooterFont.Charset = DEFAULT_CHARSET
      FooterFont.Color = clWindowText
      FooterFont.Height = -11
      FooterFont.Name = 'Tahoma'
      FooterFont.Style = []
      IndicatorOptions = [gioShowRowIndicatorEh]
      ReadOnly = True
      TabOrder = 0
      TitleFont.Charset = DEFAULT_CHARSET
      TitleFont.Color = clWindowText
      TitleFont.Height = -11
      TitleFont.Name = 'Tahoma'
      TitleFont.Style = []
      Columns = <
        item
          EditButtons = <>
          FieldName = 'STNO'
          Footers = <>
          Title.Caption = #30424#28857#21333#21495
          Width = 99
        end
        item
          EditButtons = <>
          FieldName = 'id'
          Footers = <>
          Visible = False
          Width = 43
        end
        item
          EditButtons = <>
          FieldName = 'storeCode'
          Footers = <>
          Title.Caption = #24215#38138#32534#21495
          Width = 77
        end
        item
          EditButtons = <>
          FieldName = 'beforeTotal'
          Footers = <>
          Title.Caption = #30424#28857#21069#24635#25968#37327
          Width = 90
        end
        item
          EditButtons = <>
          FieldName = 'total'
          Footers = <>
          Title.Caption = #30424#28857#24635#25968#37327
          Width = 92
        end
        item
          EditButtons = <>
          FieldName = 'isOK'
          Footers = <>
          Title.Caption = #23436#25104
        end
        item
          EditButtons = <>
          FieldName = 'createDate'
          Footers = <>
          Title.Caption = #24320#22987#26085#26399
        end
        item
          EditButtons = <>
          FieldName = 'isDelete'
          Footers = <>
          Visible = False
        end>
      object RowDetailData: TRowDetailPanelControlEh
      end
    end
    object grddt: TDBGridEh
      Left = 0
      Top = 0
      Width = 711
      Height = 261
      Align = alClient
      DataGrouping.GroupLevels = <>
      DataSource = dsdt
      Flat = False
      FooterColor = clWindow
      FooterFont.Charset = DEFAULT_CHARSET
      FooterFont.Color = clWindowText
      FooterFont.Height = -11
      FooterFont.Name = 'Tahoma'
      FooterFont.Style = []
      FooterRowCount = 1
      ImeMode = imDisable
      IndicatorOptions = [gioShowRowIndicatorEh]
      ReadOnly = True
      SumList.Active = True
      TabOrder = 0
      TitleFont.Charset = DEFAULT_CHARSET
      TitleFont.Color = clWindowText
      TitleFont.Height = -11
      TitleFont.Name = 'Tahoma'
      TitleFont.Style = []
      Columns = <
        item
          EditButtons = <>
          FieldName = 'id'
          Footers = <>
          Visible = False
        end
        item
          EditButtons = <>
          FieldName = 'hdid'
          Footers = <>
          Visible = False
        end
        item
          EditButtons = <>
          FieldName = 'goodsid'
          Footers = <>
          Visible = False
        end
        item
          EditButtons = <>
          FieldName = 'posId'
          Footer.Alignment = taRightJustify
          Footer.Value = #24635#25968
          Footer.ValueType = fvtStaticText
          Footers = <>
          Title.Caption = #36135#26550
        end
        item
          EditButtons = <>
          FieldName = 'qty'
          Footer.FieldName = 'qty'
          Footer.ValueType = fvtSum
          Footers = <>
          Title.Caption = #25968#37327
        end
        item
          EditButtons = <>
          FieldName = 'barcode'
          Footer.FieldName = 'barcode'
          Footer.ValueType = fvtCount
          Footers = <>
        end
        item
          EditButtons = <>
          FieldName = 'style'
          Footers = <>
          Title.Caption = #27454#24335
          Width = 166
        end
        item
          EditButtons = <>
          FieldName = 'Description'
          Footers = <>
          Title.Caption = #25551#36848
          Width = 493
        end>
      object RowDetailData: TRowDetailPanelControlEh
      end
    end
  end
  object myqryhd: TMyQuery
    Connection = DMMySQL.conMySQL
    SQL.Strings = (
      'select * from stocktakinghd where isdelete=0')
    Left = 176
    Top = 88
  end
  object myqrydt: TMyQuery
    Connection = DMMySQL.conMySQL
    SQL.Strings = (
      'select st.*,gs.barcode,gs.style,gs.Description from '
      ' stocktakingdt st left join goodsinfo gs on st.goodsid=gs.id')
    MasterSource = dshd
    MasterFields = 'id'
    DetailFields = 'hdid'
    Left = 176
    Top = 304
    ParamData = <
      item
        DataType = ftLargeint
        Name = 'id'
        ParamType = ptInput
        Value = 1
      end>
  end
  object dsdt: TDataSource
    DataSet = myqrydt
    Left = 272
    Top = 304
  end
  object dshd: TDataSource
    DataSet = myqryhd
    Left = 272
    Top = 88
  end
end
